import HttpService from "@/api";
import type { LoginForm, LoginResponse } from "@/typings";

/**
 * @description 登录
 * @param params 登录数据
 */
export const login = (userForm: LoginForm) => HttpService.post<LoginResponse>("/user/login", userForm);
